import React from 'react';
import { BrowserRouter as Router, Redirect, Route, Switch } from 'react-router-dom';
import Login from './signIn';
import Registration from './signUp'
import PostTopic from './postTopic'
import Home from './home'
import AccountInfo from "@/src/pages/accountInfo";
import AccountInfoEdit from "@/src/pages/accountInfoEdit";
import TopicInfo from "@/src/pages/topicInfo";
class NewbeeForum extends React.Component {
  render() {

    return (
      <Router>
        <Switch>
          <Route exact path="/" component={Home} />
          <Route path='/posttopic' component={PostTopic} />
          <Route path='/login' component={Login} />
          <Route path='/register' component={Registration} />
          {/* <Route path='/user/profile' component={UserProfile}/> */}
          <Route path='/accountInfo/edit' component={AccountInfoEdit}></Route>
          <Route path='/accountInfo' component={AccountInfo}></Route>
          <Route path='/topicInfo/:topicID' component={TopicInfo}></Route>
        </Switch>
      </Router>
    )
  }
}

export default NewbeeForum;